﻿<%--
  Created by IntelliJ IDEA.
  User: M1523
  Date: 2025/3/20
  Time: 11:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"  %><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/admin/bootstrap/css/bootstrap.min.css">
	<script src="${pageContext.request.contextPath}/admin/bootstrap/js/jquery-2.1.0.min.js"></script>
	<script src="${pageContext.request.contextPath}/admin/bootstrap/js/bootstrap.min.js"></script>
    <style>
		.panel{
			margin-bottom: 0px;
		}
		.panel-body{
			background-color: #337ab7;
			color: #fff;
		}
		.panel-body a{
			color: #fff;
			font-size: 20px;
		}
       .aside{
		   width: 300px;
		   border: 1px solid #ccc;
		   height: 700px;
	   }
	   .menu .panel-heading{
			background-color: #337ab7;
			color: #fff;
			cursor: pointer;
	   }
	   .menu .list-group{
		   display: none;
	   }
	   .aside{
		   float: left;
		   width: 15%;
	   }
	   .right{
		   float: left;
		   width: 85%;
		   height: 700px;
	   }
	   
    </style>
</head>
<body>
	<div>
		<div class="top">
			<div class="panel panel-default panel-custom">
				<div class="panel-body">
				  <a href="">
					  <span>顽石旅游线路管理系统</span>
				  </a>
				  <span style="float: right;">
					<a href="${pageContext.request.contextPath}/htdl">欢迎：${userqt11.username}</a>
					<a href="">退出</a>
				  </span>
				</div>
			  </div>
		</div>
		<div class="content">
			<div class="aside">
				<div class="menu">
					<div class="panel panel-default">
						<!-- Default panel contents -->
						<div class="panel-heading">
							<span>权限管理</span>
						</div>
						<!-- List group -->
						<ul class="list-group">
						  <li class="list-group-item">
							  <a href="${pageContext.request.contextPath}/admin/user/list.jsp" target="myFrame">用户管理</a>
						  </li>
						  <li class="list-group-item">
							  <a href="${pageContext.request.contextPath}/admin/role/list.jsp" target="myFrame">角色管理</a>
						  </li>
						  <li class="list-group-item">
							  <a href="${pageContext.request.contextPath}/admin/menu/list.jsp" target="myFrame">菜单管理</a>
						  </li>
						</ul>
					</div>
				</div>
				<div class="menu">
					<div class="panel panel-default">
						<!-- Default panel contents -->
						<div class="panel-heading">
							<span>后台管理</span>
						</div>
						<!-- List group -->
						<ul class="list-group">
						  <li class="list-group-item">
							  <a href="${pageContext.request.contextPath}/userqtCha" target="myFrame">前台用户管理</a>
						  </li>
						  <li class="list-group-item">
							  <a href="${pageContext.request.contextPath}/acl_userCha" target="myFrame">后台用户管理</a>

						  </li>
						  <li class="list-group-item">
							  <a href="${pageContext.request.contextPath}/routeCha" target="myFrame">旅游路线管理</a>

						  </li>
						  <li class="list-group-item">
							  <a href="${pageContext.request.contextPath}/jingdian" target="myFrame">景点管理</a>

						  </li>
							<li class="list-group-item">
								<a href="${pageContext.request.contextPath}/selectAllAcl_role" target="myFrame">角色管理</a>

							</li>
							<li class="list-group-item">
								<a href="${pageContext.request.contextPath}/selectClassIf" target="myFrame">栏目管理</a>

							</li>
							<li class="list-group-item">
								<a href="${pageContext.request.contextPath}/shoucang" target="myFrame">收藏管理</a>

							</li>
							<li class="list-group-item">
								<a href="${pageContext.request.contextPath}/supplierCha" target="myFrame">供应商管理</a>

							</li>
							<li class="list-group-item">
								<a href="${pageContext.request.contextPath}/orderCha" target="myFrame">订单管理</a>
							</li>
							<li class="list-group-item">
								<a href="${pageContext.request.contextPath}/imgsCha" target="myFrame">图片管理</a>
							</li>
							<li class="list-group-item">
								<a href="${pageContext.request.contextPath}/selectAllAcl_permission" target="myFrame">权限管理</a>
							</li>
						</ul>
					</div>
				</div>
			</div>
			<div class="right">
				<iframe name="myFrame" width="100%" height="1000px" scrolling="yes" frameborder="0" src="welcome.jsp"></iframe>
				
			</div>
		</div>
		<div class="footer">

		</div>
	</div>
	<script>
		var menus = document.querySelectorAll(".menu .panel-heading");
		
		menus.forEach(element => {
			var isshow = false;
			element.onclick = function(){
				var list_group = this.nextElementSibling;				
				if(isshow){
					list_group.style.display = "none";
					isshow = false
				}else{
					list_group.style.display = "block";
					isshow = true
				}
			}
		});
	</script>
</body>
</html>